package com.link2room.ironhide.dto.result.base;


import com.link2room.common.constant.DefaultValue;
import com.link2room.common.dto.result.base.BaseDto;

import java.util.List;

/**
 * Created by sss on 2016/10/12.
 */
public class PositionBaseDto extends BaseDto {

    /**
     * 城市代码
     */
    private Long cityCode;
    /**
     * 位置类型
     */
    private String positionType;
    /**
     * 位置代码
     */
    private String positionCode;
    /**
     * 名称
     */
    private String name;
    /**
     * 标题
     */
    private String title;
    /**
     * 检索代码
     */
    private String searchCode;

    private String positionKey;

    private List<PositionBaseDto> children;

    private String isUse= DefaultValue.F;

    public Long getCityCode() {
        return cityCode;
    }

    public void setCityCode(Long cityCode) {
        this.cityCode = cityCode;
    }

    public String getPositionType() {
        return positionType;
    }

    public void setPositionType(String positionType) {
        this.positionType = positionType;
    }

    public String getPositionCode() {
        return positionCode;
    }

    public void setPositionCode(String positionCode) {
        this.positionCode = positionCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        this.title=name;
    }

    public String getSearchCode() {
        return searchCode;
    }

    public void setSearchCode(String searchCode) {
        this.searchCode = searchCode;
    }

    public List<PositionBaseDto> getChildren() {
        return children;
    }

    public void setChildren(List<PositionBaseDto> children) {
        this.children = children;
    }

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    public String getPositionKey() {
        return positionKey;
    }

    public void setPositionKey(String positionKey) {
        this.positionKey = positionKey;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
